package com.test.demo.controller;

import com.test.demo.transaction2.TransactionProducer2;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 事务消息
 * @author Gao
 */
@RestController
public class TransactionController {

    @Resource
    private TransactionProducer2 transactionProducer;

    @GetMapping("mq/transaction/test")
    public String test() {
        transactionProducer.test();
        return "Ok";
    }

}
